package com.linko.intelligent.sys.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.linko.intelligent.base.UserInfo;
import com.linko.intelligent.sys.pojo.dto.LoginDto;
import com.linko.intelligent.sys.pojo.dto.UserDto;
import com.linko.intelligent.sys.pojo.po.User;
import com.linko.intelligent.sys.pojo.query.UserQuery;

import java.util.List;

/**
 * @Author yuan
 * @create 2024/3/15 11:42
 */
public interface UserService extends IService<User> {

    public Long save(UserDto dto);

    public Boolean delete(Long id);

    public Boolean update(Long id, UserDto dto);

    public UserInfo getDetail(Long id);

    public List<User> queryList(UserQuery query);

    public PageInfo<User> queryPage(UserQuery query);

    public UserInfo login(LoginDto loginDto);

    public Long findIdByName(List<User> all, String name);

}
